#ifndef GX_FR_EDITOR_MATERIAL_DIALOG_H
#define GX_FR_EDITOR_MATERIAL_DIALOG_H

#include "MaterialListView.h"
#include "UIForm.h"

namespace FinalRendering
{
	namespace Editor
	{
		class MaterialDialog : public UIForm
		{
		private:
			GxRendering::UI::ToolButton * btnUp;
			GxRendering::UI::Label * lblCurPath;
			void form_Close(Object * sender, GxWinGUI::WindowCloseEventArgs & e);
			void form_Show(Object * sender, GxWinGUI::EventArgs e);
			void list_DirectoryChanged(GxRendering::UI::UI_Base * sender);
			void list_DblClicked(GxRendering::UI::UI_Base * sender);
			void btnUp_Clicked(GxRendering::UI::UI_Base * sender);
			void btnOK_Clicked(GxRendering::UI::UI_Base * sender);
			void btnCancel_Clicked(GxRendering::UI::UI_Base * sender);
		public:
			String FileName;
			MaterialListView * list;
			MaterialDialog();
		};
	}
}

#endif